#include "Button.hpp"

namespace red {
	namespace ui {
		Button::Button() 
		:	Widget(),
			MouseListener(),
			mPressed(false)
		{
		}

		void Button::OnMouseButtonPressed(const sf::Event::MouseButtonEvent &pEvent){
			mPressed = true;
			OnPressed();
		}

		void Button::OnMouseButtonReleased(const sf::Event::MouseButtonEvent &pEvent){
			mPressed = false;
			OnReleased();
		}
		
		void Button::OnMouseEntered(const sf::Event::MouseMoveEvent &pEvent){

		}

		void Button::OnMouseLeft(const sf::Event::MouseMoveEvent &pEvent){

		}
	}
}